-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retry brew update to fix errors about another active Homebrew process being active #1032
Conversation
…rocess being active Signed-off-by: Addisu Z. Taddese <[email protected]>
there was a related issue Homebrew/brew#13521 that was fixed in Homebrew/brew#13586. Also, there was an earlier bug report Homebrew/brew#1155 that mentioned that git may be auto-packing the repository in the background, which I believe was the motivation for the Also, Mike McQuaid was clearly 👎 on blindly removing locks in Homebrew/brew#1155 (comment). If we want a workaround, perhaps we can sleep and retry |
Signed-off-by: Addisu Z. Taddese <[email protected]>
Okay, using retries instead in 5696800 |
I looked at the following recent failure, and I think it failed at the following |
Signed-off-by: Addisu Z. Taddese <[email protected]>
Ah, you're right. If the problem is potentially due to the |
let's try it! |
… being active (#1032) Signed-off-by: Addisu Z. Taddese <[email protected]>
We're getting the "Another active Homebrew update process is already in progress" error very frequently now, so this is an attempt to fix it.
It doesn't seem like a great approach since homebrew should be cleaning things up itself, but might be worth a try. At least, this is something others have recommended. From the logs,The fix retries runningbrew
is able to install things before_homebrew_cleanup.bash
is called, so I figured removing the locks when that script is done might fix the issue.brew update
several times until it succeeds.